#include<bits/stdc++.h>
using namespace std;
int main(){
	int n,d,a;
	cin >> n >> d >> a;
	vector<string> old;
	string temp;
	if(n<a) cout << "Keep going...";
	else{
		for(int i = 1;i <= n;i++){
			cin >> temp;
			if(i==a){
				if(find(old.begin(),old.end(),temp)!=old.end()) a++;
				else{
					cout << temp << endl;
					old.push_back(temp);
					a += d;
				}
			}
		}
	}
	return 0;
}
